//
//  LBNavigationController+LBNavigationBar.m
//  AFNetworking
//
//  Created by LINAICAI on 2017/10/8.
//

#import "UINavigationController+LBNavigationBar.h"
#import <LBCategory/UIImage+LBImage.h>
@implementation UINavigationController (LBNavigationBar)
- (void)lb_resetBackgroundImage{
    [self.navigationBar setBackgroundImage:[UIImage imageNamed:@"LBBaseController.bundle/lb_bar_bg.png"] forBarMetrics:UIBarMetricsDefault];
}
- (void)lb_setBackgroundWithColor:(UIColor *)color{
    [self.navigationBar setBackgroundImage:[UIImage GetImageFromColor:color rect:CGRectMake(0, 0, self.navigationBar.bounds.size.width, self.navigationBar.bounds.size.height)] forBarPosition:UIBarPositionAny barMetrics:UIBarMetricsDefault];
}
- (void)lb_setBackgroundWithImage:(UIImage *)image{
    [self.navigationBar setBackgroundImage:image forBarPosition:UIBarPositionAny barMetrics:UIBarMetricsDefault];
}
@end
